Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 5 - Ink Objects / Ink Objects Reference
Functions / Manipulating Ink Object Properties


GXSetInkAttributes

You can use the GXSetInkAttributes function to set or clear the attributes of an ink object.

void GXSetInkAttributes(gxInk target, gxInkAttribute attributes);
target
A reference to the ink object to change the attributes of.
attributes
The new ink attributes to be assigned.
DESCRIPTION
The GXSetInkAttributes function sets the attributes of the ink object referenced in the target parameter to those specified in the attributes parameter. If you pass gxNoAttributes for the attributes parameter, all attributes are cleared.

ERRORS, WARNINGS, AND NOTICES
Errors 
out_of_memory 
ink_is_nil 
parameter_out_of_range(debugging version)
Notices (debugging version) 
attributes_already_set 
SEE ALSO
Ink attributes are described in the section "Ink Attributes" beginning on page 5-9.

To examine the attributes of an ink object, use the GXGetInkAttributes function, described in the previous section.

To change the attributes of the ink object associated with a specified shape, use the GXSetShapeInkAttributes function, described on page 5-63.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996